package com.nineclock.approve.service;


import com.nineclock.approve.dto.ApproveDefinitionDto;
import com.nineclock.approve.dto.ApproveGroupDefinitionDto;

import java.util.List;

public interface ApproveDefinitionService {

    /**
     * 流程定义: 查询列表
     * @return
     */
    List<ApproveGroupDefinitionDto> queryApproveGroupDefinition();

    /**
     * 流程定义: 新增/修改
     * @param approveDefinitionDto
     */
    void saveApproveDefinition(ApproveDefinitionDto approveDefinitionDto);

    /**
     * 流程定义: 根据ID查询
     * @param id
     * @return
     */
    ApproveDefinitionDto queryById(String id);
}
